package de.Niklas.Laser.util.breakEvent;

import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public final class LaserBreakBlockEvent extends Event {
    private static final HandlerList handlers;
    private final Player p;
    private final Block b;

    static {
        handlers = new HandlerList();
    }

    public LaserBreakBlockEvent(final Block block, final Player player) {
        this.p = player;
        this.b = block;
    }

    public Player getPlayer() {
        return this.p;
    }

    public Block getBlock() {
        return this.b;
    }

    public HandlerList getHandlers() {
        return LaserBreakBlockEvent.handlers;
    }

    public static HandlerList getHandlerList() {
        return LaserBreakBlockEvent.handlers;
    }
}
